import 'package:juju/fake/fake_message_tool.dart';

const String kMockAppkey = "15f8e8353795f3223e2c8a84";

class IMConf {
  ///
  /// SingleTon
  ///
  IMConf._(); //构造函数私有化

  final MessageFlutter _message = MessageFlutter();

  ///
  /// 私有的实例
  ///
  static final IMConf _imConf = IMConf._();
  static IMConf getInstance() {
    return _imConf;
  }

  void initJmessage() {
    print("==================== 开始：初始化IM组件 ======================\n");
    _message.init();
    print("==================== 完毕：初始化IM组件 ======================\n");
  }

  MessageFlutter getJmessage() {
    return _message;
  }
}
